package com.swf.common.xml;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class kefu {
 public static void main(String[] args) {
  Socket soc;
  try {
   soc = new Socket("localhost",8800);
   OutputStream os=soc.getOutputStream();
   PrintWriter pw=new PrintWriter(os);
   String a="用户名:啊啊 ; 密码:length123";
   pw.write(a);
   pw.flush();
   soc.close(); os.close(); pw.close();
  } catch (UnknownHostException e) {
   
   e.printStackTrace();
  } catch (IOException e) {
   
   e.printStackTrace();
  }
  
 }
}
